package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Quality_Main", description = "质检模板主表")
@TableName(value = "Quality_Main")
public class QualityMain extends FBaseEntity implements Serializable {


    
    @NotBlank(message="[模板名称]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("模板名称")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "tempName")
    private String tempName;
    
    @NotBlank(message="[模板编码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("模板编码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "tempCode")
    private String tempCode;
    
    @NotNull(message="[物料id]不能为空")
    @ApiModelProperty("物料id")
    @TableField(value = "materialId")
    private Long materialId;
    
    @NotNull(message="[模板类型]不能为空")
    @ApiModelProperty("模板类型")
    @TableField(value = "tempType")
    private Long tempType;
    
    @NotNull(message="[禁用标识]不能为空")
    @ApiModelProperty("禁用标识")
    @TableField(value = "status")
    private Long status;
    
    @ApiModelProperty("工序")
    @TableField(value = "processId")
    private Long processId;
    
    @NotBlank(message="[模板编码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("模板编码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "file")
    private String file;






}

